﻿define([

], function () {

    var Model = Backbone.Model.extend({
        list: function (id, callbackOk) {
            send("rol/List", { companyId: id }, null, callbackOk);
        },
        getRol: function (id, callbackOk) {
            send("rol/Get/" + id, null, null, callbackOk);
        },
        update: function (rol, callbackOk) {
            send("rol/Update", rol, { type: "PUT" }, callbackOk);
        },
        create: function (rol, callbackOk) {
            send("rol/Create", rol, { type: "POST" }, callbackOk);
        },
        deleteRol: function (id, callbackOk) {
            send("rol/Delete/" + id, null, { type: "DELETE" }, callbackOk);
        }
    });
    return Model;
});